import Vue from "vue";
import Router from "vue-router";
import login from "../pages/login.vue";
import loginz from "../pages/loginz.vue";
import index from "../pages/index.vue";
import sickbedList from "../pages/sickbedList";
import register from "../pages/register.vue";
import accountManage from "../pages/accountManage.vue";
import sickbedManage from "../pages/sickbedManage.vue";
import addPatient from "../pages/addPatient.vue";
import docDia from "../pages/docDia.vue";
import inHospitalManage from "../pages/inHospitalManage";
import leaveHospitalManage from "../pages/leaveHospitalManage";
import swiperManage from "../pages/swiperManage";
import articleManage from "../pages/articleManage";
import noticleManage from "../pages/noticleManage";
import user from "../pages/user";
import op from "../pages/op";
import chat from "../pages/chat";
import position from "../pages/position";
import department from "../pages/department";
Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      component: login,
      meta: {
        showNav: false
      }
    },
    {
      path: "/login",
      name: "login",
      component: login,
      meta: {
        showNav: false
      }
    },
    {
      path: "/loginz",
      name: "loginz",
      component: loginz,
      meta: {
        showNav: false
      }
    },
    {
      path: "/sickbedList",
      name: "sickbedList",
      component: sickbedList,
      meta: {
        showNav: true
      }
    },
    {
      path: "/index",
      name: "index",
      component: index,
      meta: {
        showNav: true
      }
    },
    {
      path: "/register",
      name: "register",
      component: register,
      meta: {
        showNav: true
      }
    },
    {
      path: "/accountManage",
      name: "accountManage",
      component: accountManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/sickbedManage",
      name: "sickbedManage",
      component: sickbedManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/addPatient",
      name: "addPatient",
      component: addPatient,
      meta: {
        showNav: true
      }
    },
    {
      path: "/position",
      name: "position",
      component: position,
      meta: {
        showNav: true
      }
    },
    {
      path: "/docDia",
      name: "docDia",
      component: docDia,
      meta: {
        showNav: true
      }
    },
    {
      path: "/inHospitalManage",
      name: "inHospitalManage",
      component: inHospitalManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/leaveHospitalManage",
      name: "leaveHospitalManage",
      component: leaveHospitalManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/swiperManage",
      name: "swiperManage",
      component: swiperManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/articleManage",
      name: "articleManage",
      component: articleManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/noticleManage",
      name: "noticleManage",
      component: noticleManage,
      meta: {
        showNav: true
      }
    },
    {
      path: "/user",
      name: "user",
      component: user,
      meta: {
        showNav: true
      }
    },
    {
      path: "/op",
      name: "op",
      component: op,
      meta: {
        showNav: true
      }
    },
    {
      path: "/chat",
      name: "chat",
      component: chat,
      meta: {
        showNav: true
      }
    },
    {
      path: "/department",
      name: "department",
      component: department,
      meta: {
        showNav: true
      }
    }
  ]
});
